package com.pp.third.remote.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * authFeign
 * @author pp
 */
@FeignClient(/*contextId = "thirdAuthFeignService",*/
        value = "jiyun-auth-remote-v1")
public interface ThirdAuthFeignService {

    /**
     * 通过Feign调用checkToken
     * @param token
     * @return
     */
    @RequestMapping(value = "/uac/v1/oauth/check_token",method = RequestMethod.POST)
    Map<String, Object> checkToken(@RequestParam(name = "token") String token);
}